﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="warehouse.aspx.cs" Inherits="WebApp.admin.warehouse.warehouse" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <title>
     
    </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" language="javascript">

    function checkWarehouseForm() {
        var wareName = document.getElementById("txtWareName");
        if (wareName.value == "") {
            alert("请输入仓库名称！");
            wareName.focus();
            return false;
        }
        var bh = document.getElementById("txtbh");
        if (bh.value == "") {
            alert("请输入仓库编号！");
            bh.focus();
            return false;
        }
        var man = document.getElementById("txtName");
        if (man.value == "") {
            alert("请输入仓负责人！");
            man.focus();
            return false;
        }
        var phone = document.getElementById("txtPhone");
        if (phone.value == "") {
            alert("请输入联系电话！");
            phone.focus();
            return false;
        }
        var address = document.getElementById("txtAddress");
        if (address.value == "") {
            alert("请输入仓库地址！");
            address.focus();
            return false;
        }

        var content = document.getElementById("txtContent");
        if (content.value == "") {
            alert("请输入仓库描述！");
            content.focus();
            return false;
        }
        return true;
    }


</script>
</head>






<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">

        <tr>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
                        所在位置：库房管理->
                        <%= Request.QueryString["ot"] == "ed" ? "库房编辑" : "库房添加"%>
                        <a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
                    </div>
                    <form id="form2" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                           <tr>
                    <th width="169" bgcolor="#FFFFFF" class="r_bg" style="width: 167px" >
                        仓库名称：</th>
                    <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                  <asp:TextBox ID="txtWareName" runat="server" CssClass="input1" check_null="仓库名称不能为空"></asp:TextBox>
                               </td>
                </tr>
                <tr>
                    <th bgcolor="#ffffff" class="r_bg" style="width: 167px" width="169">
                        仓库编号：</th>
                    <td bgcolor="#ffffff" class="right_bg" colspan="3">
                        <asp:TextBox ID="txtbh" runat="server" CssClass="input1"></asp:TextBox></td>
                </tr>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px" >
                        负 责 人：                    </th>
                    <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                  <asp:TextBox ID="txtName" runat="server" CssClass="input1" check_null="负责人不能为空"></asp:TextBox></td>
                </tr>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px" >
                        联系电话：                    </th>
                    <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                  <asp:TextBox ID="txtPhone" runat="server" CssClass="input1" check_null="联系电话不能为空" check_money="电话格式错误，请输入数字"></asp:TextBox></td>
                </tr>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px" >
                        仓库地址：                        </th>
                    <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                  <asp:TextBox ID="txtAddress" runat="server" CssClass="input1" check_null="仓库地址不能为空" ></asp:TextBox></td>
                </tr>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px" >
                        仓库描述：                        </th>
                    <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                  <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Columns="30" Rows="5" Text="" onBlur="if(this.value=='')this.value='空'"   onFocus="if(this.value=='空')this.value=''"></asp:TextBox></td>
                </tr>
                <tr>
                    <th bgcolor="#FFFFFF" class="r_bg" style="width: 167px" >                    </th>
                    <td colspan="3" bgcolor="#FFFFFF" class="right_bg">
                     <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"
                                        OnClientClick="return checkWarehouseForm();" />&nbsp;&nbsp;&nbsp;&nbsp;
                                        <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="javascript:location.href=document.referrer;"  /></td>
                </tr>
                        </table>
                    </form>
                </div>
            </td>
        
        </tr>
    
    </table>
</body>
</html>


